package cn.cj.util;

import cn.cj.vo.Result;

public class ResultUtil {
    public static Result success(Object object) {
        Result resutl = new Result();
        resutl.setCode(0);
        resutl.setMsg("成功");
        resutl.setDate(object);
        return resutl;

    }

    public static Result error(Integer integer, String msg) {
        Result resutl = new Result();
        resutl.setCode(integer);
        resutl.setMsg(msg);
        return resutl;

    }
}
